package com.dsz.day5.dfs_bfs;

import java.util.LinkedList;

public class EdgeNode {

    //该结点所连接的其他结点
    //LinkedList<EdgeNode>存储的链表类型的集合，其中，存储的元素类型是EdgeNode
    private LinkedList<EdgeNode> edgeNodeList;

    //结点名称
    private String name;
    //初始阶段结点未被访问
    private boolean isVisited =false;

    public EdgeNode(String name) {
        this.name = name;
    }

    public LinkedList<EdgeNode> getEdgeNodeList() {
        return edgeNodeList;
    }

    public void setEdgeNodeList(LinkedList<EdgeNode> edgeNodeList) {
        this.edgeNodeList = edgeNodeList;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isVisited() {
        return isVisited;
    }

    public void setVisited(boolean visited) {
        isVisited = visited;
    }
}
